// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import settings from "./settings";
import '../static/css/reset.css'
import Router from "vue-router"
import Home from "@/components/Home";
import Login from "@/components/Login";


Vue.use(Router);
// 配置路由列表
export default new Router({
    mode: "history",
    routes: [
        // 路由列表
            {
                name: "Login",
                path: "/user/login",
                component: Login,
            }
    ]
})

// elementUI 导入
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';  // 需要import引入一下css文件，和我们的link标签引入是一个效果，

// 注册video
require('video.js/dist/video-js.css');
//或者 import 'video.js/dist/video-js.css'
require('vue-video-player/src/custom-theme.css');
//或者：import 'vue-video-player/src/custom-theme.css'
import VideoPlayer from 'vue-video-player'

Vue.use(VideoPlayer);

// 而import .. from ..是配合export default来使用的
Vue.config.productionTip = false;
// 调用插件
Vue.use(ElementUI);
Vue.prototype.$axios = axios;
Vue.prototype.$settings = settings;
// axios.defaults.withCredentials = false;
/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: {App},
    template: '<App/>'
});
